<?php

/**
 * @author edson5
 * @copyright 2012
 */

//echo $_POST['idHotOld'];
//echo $_POST['idHotNew'];
//echo $_POST['idtour'];
$ruta=$_SERVER['DOCUMENT_ROOT']."/viventura/MDHoteles";
$ruta2=$_SERVER['DOCUMENT_ROOT']."/viventura";




include_once("$ruta/conf/CConfig.php");

$query="update tour_as set hoteles_idHot=$_POST[idHotNew] where tour_idTour=$_POST[idtour] and hoteles_idHot=$_POST[idHotOld]";

CModelo::getInstance()->updateData($query);
?>